import request from "../utils/request";

// 充值列表
export async function fetchRechargeList(params) {
    return await request.post('finance/rechargeList', params)
}

// 商户转账列表
export async function fetchMerchantTransfer(params) {
    return await request.post('finance/merchantTransferList', params)
}

// 线上充值
export async function onlineRecharge(params) {
    return await request.post('finance/onlineRecharge', params)
}

// 线下充值
export async function offlineRecharge(params) {
    return await request.post('finance/offlineRecharge', params)
}


// 提现列表
export async function fetchWithdrawalList(params) {
    return await request.post('finance/withdrawalList', params)
}

// 线下提现
export async function offlineWithdrawal(params) {
    return await request.post('finance/offlineWithdrawal', params)
}

// 线上提现
export async function onlineWithdrawal(params) {
    return await request.post('finance/onlineWithdrawal', params)
}

// 批量提现
export async function batchWithdrawal(params) {
    return await request.post('finance/batchWithdrawal', params)
}

// 获取可用余额
export async function fetchBalance(params) {
    return await request.get('merchant/getCanBalance',{params})
}

// 获取银行卡列表
export async function fetchBankList(params) {
    return await request.post('finance/bankList')
}

// 提现发送邮箱验证码
export async function withdrawalEmailCode(params) {
    return await request.post('finance/sendWithdrawalEmail')
}
// 上传图片
export async function uploadImage(params) {
    return await request.post('finance/uploadPictures',params)
}
// 获取商户转账列表
export async function fetchTransferList(params) {
    return await request.post('finance/merchantTransferList',params)
}
// 添加商户转账
export async function increaseTransfer(params) {
    return await request.post('finance/merchantTransfer',params)
}
// 商户转账验证码
export async function sendMerchantTransferEmail(params) {
    return await request.post('finance/sendMerchantTransferEmail',params)
}
// 商户转账导出
export async function merchantTransferExport(params) {
    return await request.post('finance/merchantTransferListExport',params)
}
// 提现列表导出
export async function withdrawalListExport(params) {
    return await request.post('finance/withdrawalListExport',params)
}
// 充值列表导出
export async function rechargeListExport(params) {
    return await request.post('finance/rechargeListExport',params)
}
